package com.yq.dayin;

/**
 * @author 3307235355@qq.com
 * @description
 * @since 2022/07/04 20:54
 */
/*
编写测试类Test，创建打印类对象，创建两个线程类对象，启动线程
 */
public class Test {
    public static void main(String[] args) {
        Printer printer = new Printer();
        NumberPrinter numberPrinter = new NumberPrinter(printer);
        LetterPrinter letterPrinter = new LetterPrinter(printer);
        numberPrinter.start();
        letterPrinter.start();
    }
}
